{load header}
<!--/H-->

    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
        <!-- nav --><!-- nav -->
            
	<div class="main-title">
		<h2>合作机构管理</h2>
	</div>
        
  <div class="tab-wrap">
                <ul class="tab-nav nav">
			<li class="current"><a href="{eval echo site_url('contents/partner')}">合作伙伴列表</a></li>
			<!--<li><a href="{eval echo site_url('content/partner_type')}">合作伙伴类型</a></li>-->
		</ul>
     <div class="tab-content">       
	<div class="cf">
		<a class="btn" href="{eval echo site_url('contents/partner_add')}">新增合作机构</a>
		<!--<a class="btn" href="javascript:;">删 除</a>-->
		<!-- 高级搜索 -->
	</div>
	
	<div class="data-table table-striped">
		<table>
			<thead>
				<tr>
                                    <!--
					<th class="row-selected">
						<input class="checkbox check-all" type="checkbox">
					</th>-->
					<th>ID</th>
					<th>机构名称</th>
					<th>LOGO</th>
					<th>网址</th>
					<th>是否显示</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<!--{loop $list $val}-->
				<tr>
					<!--<td><input class="ids row-selected" type="checkbox" name="id[]" value="{$val['id']}"></td>-->
					<td>{$val['id']}</td>
					<td><a href="{eval echo site_url('contents/partner_edit')}?id={$val['id']}">{$val['name']}</a></td>
					<td><!--{if ($val['logo']!='')}--><img height="30" src="{$val['logo']}"><!--{/if}--></td>
                                        <td><a href="{$val['website']}" target="_blank">{$val['website']}</a></td>
                                        <td>
                                            <a title="<!--{if ($val['is_show'])=='0' }-->点击启用<!--{else}-->点击关闭<!--{/if}-->" href="{eval echo site_url('contents/partner_setshow').'?id='.$val['id'].'&show='.abs(1-$val['is_show'])}" class="ajax-get"><!--{if ($val['is_show'])=='0' }--><span style="color:#ff0000">关闭</span><!--{else}-->启用<!--{/if}--></a>
                                        </td>
					<td>
						<a title="编辑" href="{eval echo site_url('contents/partner_edit')}?id={$val['id']}">编辑</a>
						<a class="confirm ajax-get" title="删除" href="{eval echo site_url('contents/partner_del')}?id={$val['id']}">删除</a>
					</td>
				</tr>
				<!--{/loop}-->
			</tbody>
		</table>
		<!-- 分页 -->
	    <div class="page">
	        <div>
			{$showpage}
			<span class="rows">共 {$Total} 条记录</span>
			</div>
		</div>
		
	</div>
         </div>   
        </div>

<!--F-->{load footer}